home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 4
/
MacMania 4.toast
/
/
Demo's
/
Igor Demo Pro
/
1 PutContentsIn Igor Pro Folder
/
More Extensions
/
File Loaders
/
GWLoadWave Documentation
< prev
next >
Wrap
Text File
|
1993-01-22
|
3KB
|
72 lines
*** GWLoadWave 1/23/93 ***
GWLoadWave is an Igor external operation (XOP) that loads data from GW
Instruments files into Igor waves. To use GWLoadWave, you must drag the
GWLoadWave file into the folder containing the Igor application before
launching Igor.
GWLoadWave adds a 'Load GW File' item to the 'Load Waves' submenu
of Igor's 'File' menu. It behaves much like Igor's built in LoadWave operation
except that it loads the GW Instruments file formats. It works with almost
all wave files created by GW Instruments products. See below for file
format details.
In addition to loading the data from these files, GWLoadWave sets the X scaling
of the waves it creates if that information is available in the particular file
format.
You can access GWLoadWave through its menu item or by invoking the
GWLoadWave operation from the command line or from a macro. The
GWLoadWave operation has the following syntax:
GWLoadWave [[/P=path]/O/D/I/Q/A[=basename]] "filename"
/P=path specifies a path where file can be found.
/O causes new waves to overwrite existing waves of the same name.
/D causes the new waves to be double precision.
/I causes GWLoadWave to put up the standard open dialog.
/Q suppresses normal diagnostic messages during load.
/A automatically names new waves using default names.
/A=basename specifies base name to use in generating the wave names.
/N like /A except it reuses existing names.
/N=basename like /A except it reuses existing names.
If neither /A nor /N is used then wave names are generated from
the the file name.
"filename" is a full file name for the file to load
or a partial file name if /P is used.
If "filename" is omitted GWLoadWave puts up the standard open dialog.
*** File Format Details
32 bit floating point MacAdios Manager STANDARD (type -2)
16 bit integer MacAdios Manager STANDARD (type -1)
16 bit integer Mac Speech Lab format (type 0 -- see note at bottom)
16 bit integer MacAdios Manager (type 1, save special, BASIC)
16 bit integer MacInstruments Binary (type 2)
32 bit floating point MacAdios Manager (type 3, save special, BASIC)
32 bit integer (type 4)
Type codes 0 through 4 are defined in the MacAdios Software Series Instruction
Manual from GW Instruments. Type codes -1 and -2 are used by GWLoadWave
to distinguish the STANDARD formats from the others.
NOTE:
We can't guarantee that GWLoadWave will work with every GW file,
past, present or future.
*** Note on Mac Speech Lab Format
The Mac Speech Lab files are structured as described for type code 0 in
the GW manual. That is, they have a 16 bit sample rate number at the beginning.
GWLoadWave will use this to set the X scaling for the waves it creates.
However, the type code in Mac Speech Lab files is actually set to one.
This causes GWLoadWave to load the file such that the sample rate information
described in the GW manual is loaded as point zero of the wave.
You can correct this using a file fudging program to set the file's data type
code (bytes 0 and 1) to 0.